<?php

/**
 * @name: HOTN AnimeList
 * @author: HammerOnTheNail
 * @link: http://code.google.com/p/hotnanimelist/
 */

if($_POST['id']<>"")
{
	$project_id = (int)$_POST['id'];
	
	// Alap dolgok bekérése
	include("../../class2.php");
	include(e_PLUGIN."/hotn_animelist/Languages/".e_LANGUAGE.".php");
	include(e_PLUGIN."hotn_animelist/Class/animelist_mysql.php");
	include(e_PLUGIN."hotn_animelist/Class/animelist_options.php");
	
	//beállítások ellenőrzése:
	if ($HOTN_ANIMELIST_OPTIONS['download_type']<>"")
	{
		include(e_PLUGIN."hotn_animelist/Class/download_".$HOTN_ANIMELIST_OPTIONS['download_type'].".php");
		$HOTN_ANIMELIST_DOWNLOAD = new hotn_animelist_download();
	}
	
	// Project adatok lekérdezése
	$project = $HOTN_ANIMELIST_DOWNLOAD->hotn_animelist_download_get_one_project($project_id);
	
	print " 
	<table style='width: 100%'>
		<tr>
			<td class='hotn_animelist_project_view_project_text'>
				".$tp->toHTML($project['project_text'],TRUE)."
				<div clas='clear'></div>
				<div class='hotn_animelist_project_request'>".$project['project_request']."</div>
			</td>
			<td id='hotn_animelist_project_view_project_image' class='hotn_animelist_project_view_project_image'>
	";
				for($i=1;$i<=6;$i++)
				{
					if ($project['project_image_'.$i] <> "")
					{
						print "<a href='".e_PLUGIN."hotn_animelist/Project/".$project['project_folder']."/".$project['project_image_'.$i]."'><img src='".e_PLUGIN."hotn_animelist/Project/".$project['project_folder']."/thumb_".$project['project_image_'.$i]."' /></a>";
					}
				}
	print "	</td>
		</tr>
	</table>
	";
	
}


?>